package p270jp.pxv.android.activity;

import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import p014ae.AbstractActivityC0186y0;
import p014ae.C0147r4;
import p071cd.Functions;
import p210hh.PixivAccountManager;
import p307l9.EdgeTreatment;
import p370ni.InfoType;
import p569vd.C6830b;
import p645yc.AndroidSchedulers;
import p665z6.C7456k;

/* renamed from: jp.pxv.android.activity.IllustDetailSingleActivity */
/* loaded from: classes2.dex */
public class IllustDetailSingleActivity extends AbstractActivityC0186y0 {

    /* renamed from: m0 */
    public static final /* synthetic */ int f18377m0 = 0;

    /* renamed from: j1 */
    public static Intent m4818j1(Context context, long j) {
        EdgeTreatment.m3909i(context);
        EdgeTreatment.m3910h(j > 0);
        Intent intent = new Intent(context, IllustDetailSingleActivity.class);
        intent.putExtra("ILLUST_ID", j);
        return intent;
    }

    @Override // p014ae.AbstractActivityC0101k
    /* renamed from: i1 */
    public void mo4819i1() {
        long longExtra = getIntent().getLongExtra("ILLUST_ID", -1);
        if (longExtra <= 0) {
            this.f432e0.f21873v.m4595d(InfoType.NOT_FOUND, null);
            return;
        }
        this.f432e0.f21873v.m4595d(InfoType.LOADING, null);
        this.f430c0.mo82c(PixivAccountManager.m5511e().m5514b().m989l(new C7456k(longExtra, 7)).m986o(AndroidSchedulers.m334a()).m984q(new C6830b(this, 1), new C0147r4(this, 0), Functions.f5386c, Functions.f5387d));
    }

    @Override // p014ae.AbstractActivityC0101k, p270jp.pxv.android.activity.AbstractActivityC4151b, p270jp.pxv.android.activity.BaseActivity, androidx.fragment.app.FragmentActivity, androidx.activity.ComponentActivity, p248j2.ActivityC3902g, android.app.Activity
    public void onCreate(Bundle bundle) {
        super.onCreate(bundle);
        this.f345H = false;
    }
}
